<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>滚动图片活动</title>
<style type="text/css">
/*   body{text-align: center}
  table{font-size: 12px;width: 80%;}
  tr{height: 30px}
  .td{text-align: right} */
</style>
</head>

<link rel="stylesheet" href="<%=basePath%>ui/css/edit.css" />
<script type="text/javascript"
	src="<%=basePath%>kindeditor/kindeditor.js"></script>
<script type="text/javascript">
function checkContent() {
	var dishName=$("#dishName").val();
	if(!dishName){
		alert("请输入标题！");
		return false;
	}

    var content = $("#dishContent").val();
	if (!content) {
		alert("请输入简介！");
		return false;
	}
	if (content.length > 20000) {
		alert("简介长度不能超过20000字！");
		return false;
	}
	return true;
	//$("form").submit();
}
</script>
<body>
  <div>
	<form action="${basePath}storeShow/save.html" id="myform"
		method="post" onsubmit="return checkContent()"
		enctype="multipart/form-data">
		<input type="hidden" name="porCode" value="${porCode}"> <input
			type="hidden" name="id" id="id" value="${entity.id}"> <input
			type="hidden" name="type" value="${type}">
		<table cellspacing="0" cellpadding="0" border="0" class="addclass">
			 <tr>
	  		    <td colspan="2><div class="nav"><%@ include file="/common/nav.jsp"%></div></tr>
	  		  </tr>
			<tr>
				<td width="20%" class="trLeft">店名：</td>
				<td><input type="text" name="dishName" id="dishName"
					value="${entity.dishName}" maxlength="60"></td>
			</tr>
			<tr>
				<td width="20%" class="trLeft">地址：</td>
				<td><input type="text" name="dishSource" id="dishSource"
					value="${entity.dishSource}" maxlength="120"></td>
			</tr>
			<tr>
				<td width="20%" class="trLeft">电话：</td>
				<td><input type="text" name="dishSubtitle" id="dishSubtitle"
					value="${entity.dishSubtitle}" maxlength="20"></td>
			</tr>
			<tr>
				<td width="20%" class="trLeft">公交：</td>
				<td><input type="text" name="dishSecondname" id="dishSecondname"
					value="${entity.dishSecondname}" maxlength="60"></td>
			</tr>
			<tr>
				<td width="20%" class="trLeft">经纬度：</td>
				<td><input type="text" name="dishUrl" id="dishUrl"
					value="${entity.dishUrl}" maxlength="60">&nbsp;<font color="red">格式：22222222.2,33333333.3  （用英文","隔开）</font></td>
			</tr>
				<tr>
				<td width="20%" class="trLeft" valign="top">简介：</td>
				<td>
				 <textarea  class="textarea" name="dishContent" id="dishContent" maxlength="200">${entity.dishContent }</textarea>
				</td>
			</tr>
			<tr>
				<td colspan="2" style="text-align: center"><input
					class="button" type="submit" value="提交" id="save"></td>
				<!-- onclick="save()" -->
			</tr>
		</table>
	</form>
</div>
</body>
</html>
